﻿#ifndef SCANNERCONTROL_H
#define SCANNERCONTROL_H
/*
 *
 * 扫码枪控制类
 *
*/
#include <QObject>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QDebug>


// #include <QTextCodec>

class ScannerControl : public QObject
{
    Q_OBJECT    

public:

    // 构造函数
    ScannerControl(QObject *parent = nullptr);

    // 设置连接参数
    void setConnectParameter(QString portName,
                             QString baudrate,
                             QString databit,
                             QString paritybit,
                             QString stopbit);

    // 扫码枪连接方法
    void connectMethod();

    QSerialPort* m_Serial;


public slots:




private:


signals:

};

#endif // SCANNERCONTROL_H
